<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.org/ui"
                template="/templates/ui.xhtml">

    <ui:define name="head">
        <style type="text/css">
            .col-95 {
                width: 95%;
            }

            .col-5 {
                width: 5%;
            }
        </style>
    </ui:define>
    <ui:define name="content">
        <div style="margin:5px">
            <p:tabView id="tabview" dynamic="true" cache="false" style="font-weight:normal;font-style:normal">
                <p:tab title="结算帐户余额信息">
                    <h:form>
                        <div id="qrytable">
                            <p:growl id="msgs" showDetail="false"/>
                            <p:panel style="margin-top:10px">
                                <h:panelGrid columns="2" cellspacing="5" columnClasses="col-95,col-5">
                                    <h:panelGrid columns="2" cellspacing="5">
                                        <h:outputLabel value="结算帐号:" style="font-weight: bold"/>
                                        <p:inputText required="true" value="#{actInfoAction.qryParam.cbsActno}"/>
                                        <h:outputLabel value="帐号状态:" style="font-weight: bold"/>
                                        <h:selectOneMenu style="width:153px;"
                                                         value="#{actInfoAction.qryParam.actnoStatus}">
                                            <f:selectItems value="#{actInfoAction.actnoStatusList}"/>
                                        </h:selectOneMenu>
                                    </h:panelGrid>
                                    <h:panelGrid>
                                        <p:commandButton style="width:90px;" value="查询余额"
                                                         action="#{actInfoAction.onQueryCbsBal}"
                                                         update="pdt,msgs">
                                        </p:commandButton>
                                    </h:panelGrid>
                                </h:panelGrid>
                            </p:panel>
                            <p:ajaxStatus style="height:18px;text-align:center">
                                <f:facet name="start">
                                    <h:graphicImage value="/images/ajaxloadingbar.gif"/>
                                </f:facet>
                                <f:facet name="complete">
                                    <h:outputText value=""/>
                                </f:facet>
                            </p:ajaxStatus>
                            <p:dataTable id="pdt" dynamic="true" style="width:100%;"
                                         value="#{actInfoAction.stlBalList}" var="record"
                                         rowKey="#{record.pkid}"
                                         selection="#{actInfoAction.selectedStlBalRecords}"
                                         paginatorTemplate="{FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
                                         paginator="true" rows="15" paginatorPosition="bottom"
                                         rowsPerPageTemplate="100,50,30,15,5"
                                         emptyMessage="数据记录为空...">
                                <p:column selectionMode="multiple" style="width:18px"/>
                                <p:column headerText="帐号" style="text-align: center">
                                    <h:outputText value="#{record.cbsActno}"/>
                                </p:column>
                                <p:column headerText="户名" style="text-align: center">
                                    <h:outputText value="#{record.cbsActname}"/>
                                </p:column>
                                <p:column headerText="维修资金余额">
                                    <h:outputText value="#{record.actBal}" style="float: right">
                                        <f:convertNumber type="number" pattern="#,###,###,###,##0.00"/>
                                    </h:outputText>
                                </p:column>
                                <p:column headerText="利息总额">
                                    <h:outputText value="#{record.intAmt}" style="float: right">
                                        <f:convertNumber type="number" pattern="#,###,###,###,##0.00"/>
                                    </h:outputText>
                                </p:column>
                                <p:column headerText="总余额">
                                    <h:outputText value="#{record.actBal.add(record.intAmt)}" style="float: right">
                                        <f:convertNumber type="number" pattern="#,###,###,###,##0.00"/>
                                    </h:outputText>
                                </p:column>
                                <p:column headerText="帐户状态" style="text-align: center">
                                    <h:outputText
                                            value="#{actInfoAction.fundActnoStatus.valueOfAlias(record.actSts).title}"/>
                                </p:column>
                            </p:dataTable>
                        </div>
                    </h:form>
                </p:tab>
            </p:tabView>
        </div>
    </ui:define>
</ui:composition>